<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title> Bienvenido a Tempo - TimeSheet </title>
    <%= stylesheet_link_tag 'scaffold' %>

    <%= stylesheet_link_tag 'codebase/dhtmlxgrid.css' %>
    <%= stylesheet_link_tag 'codebase/skins/dhtmlxgrid_dhx_skyblue.css' %>

    <%= javascript_include_tag("codebase/dhtmlxcommon.js") %>
    <%= javascript_include_tag("codebase/dhtmlxgrid.js") %>
    <%= javascript_include_tag("codebase/dhtmlxgridcell.js") %>
    <%= javascript_include_tag("codebase/dhtmlxdataprocessor.js") %>

    <%= javascript_include_tag :defaults %>
    <%= javascript_include_tag("prototype") %>

    <%= render 'head' %>

</head>

<body>
  <center>
   <table class="mainTable"  border="0">
    <tr height="100px" class="headTable">
      <td   width="100%" colspan="3">
        <table width="100%">
          <tr>
            <td width="90%"></td>
            <td>
        <div style="color: white; border: 6;align:right; ">
                <% unless current_user.nil?  %>
                  <%  if current_user.role_id<3 %>
                    <b ><%= link_to current_user.username, :controller => "users",:id=>current_user.id,:action=>:edit,:complete=>'link' %></b>
                  <%  else %>
                      <b><%=  current_user.username %></b>
                  <%  end %>
                 | <b><%= link_to "Salir", :controller => "logout" %></b>
                <%  end %>

        </div>
              </td>
        </tr>
        </table>
      </td>
    </tr>
    <tr height="75%">
      <td width="19%" >
        <div style="paddin:0px;top:25%; position:absolute;width:16%; "><%= render 'menu' %></div>
      </td>
      <td width="80%">
        <div id="notice"><p style="color: green;"><%= notice %></p></div>
        <%= yield %>
      </td>
    </tr>
    <tr height="10%">
      <td  width="100%" colspan="3">
        <center><i>Desarrollado por el cuerpo estudiantil de la Universidad tecnológica de la Mixteca para la iniciativa (Concurso) Veureka 2010 - 2011</i> <br/> <b>UTM</b> : Carretera a acatlima KM 2.5 Oaxaca - México </center>
      </td>
    </tr>
  </table>
    </center>
</body>
</html>
